package nige.jar.classe.fenetre;

import java.awt.Color;

import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

/**
 * Suite de la creation de la fenetre
 * @author Nicolas Genevaux
 * 
 * DEPTH  1
 *       Object
 * CALLEE  1
 *       CreateFenetre
 * 
 * 14-02-2008   Nicolas Genevaux      v.0.0.1
 */
public class CreateFenetre2 {
  
  /**
   * Fenetre a creer
   * @param fen Fenetre a creer
   */
  public void create(Fenetre fen) {
    fen.setSource(new JTextField());
    fen.getSource().setCaretColor(Color.blue);
    fen.getSource().setBounds(10,50,160,20);
    fen.getSource().setBorder(BorderFactory.createLineBorder(Color.black));
    fen.setSourceButton(new JButton("Stop"));
    fen.getSourceButton().setBounds(10,130,70,20);
    fen.getSourceButton().setName("source");
    fen.getSourceButton().setEnabled(false);
    fen.getSourceButton().addActionListener(fen);
    fen.setCible(new JTextField());
    fen.getCible().setCaretColor(Color.blue);
    fen.getCible().setBounds(10,100,160,20);
    fen.getCible().setBorder(BorderFactory.createLineBorder(Color.black));
    fen.getCible().setEnabled(true);
    fen.setStartButton(new JButton("Start"));
    fen.getStartButton().setBounds(100,130,70,20);
    fen.getStartButton().setName("start");
    fen.getStartButton().addActionListener(fen);
    fen.setLog(new JLabel("Appuyez sur Start pour rechercher des classes"));
    fen.getLog().setBounds(10,140,300,60);
    fen.getLog().setName("log");
    fen.getLog().setForeground(Color.blue);
    fen.setDossierAnalyse(new JLabel("0 dossier(s) analyse(s)"));
    fen.getDossierAnalyse().setBounds(10,160,300,60);
    fen.getDossierAnalyse().setForeground(new Color(100,0,0));
    fen.setFichierAnalyse(new JLabel("0 fichier(s) analyse(s)"));
    fen.getFichierAnalyse().setBounds(10,180,300,60);
    fen.getFichierAnalyse().setForeground(new Color(100,0,0));
    fen.setJarFileAnalyse(new JLabel("0 jar(s) analyse(s)"));
    fen.getJarFileAnalyse().setBounds(10,200,300,60);
    fen.getJarFileAnalyse().setForeground(new Color(100,0,0));
    fen.setClasseJAnalyse(new JLabel("0 classe(s) analyse(s)"));
    fen.getClasseJAnalyse().setBounds(10,220,300,60);
    fen.getClasseJAnalyse().setForeground(new Color(100,0,0));
    fen.setLogs(new JPanel());
    fen.getLogs().setBounds(10,260,270,60);
    fen.getLogs().setBackground(Color.lightGray);
    fen.getLogs().add(fen.getLog());
  }
  
}
